<?php
if (!defined('IN_ZWS')) exit();

class CommentViewModel extends ViewModel {
	public $viewFields = array('ArticleComment' => array('id', 'uid', 'aid', 'pid', 'comment', 'ctime', '_type' => "LEFT"),
		'Article' => array('res','title',  '_on' => 'Article.id=ArticleComment.aid','_type' => "LEFT"),
		'User' => array('username', 'password', 'email', '_on' => 'User.id=ArticleComment.uid', '_type' => "LEFT"),
		'UserInfo' => array('avatar', '_on' => 'UserInfo.uid=ArticleComment.uid', '_type' => "LEFT"),
		);
}
